package com.max.constants;

public enum ReservationState {

    /*0未开始，1已完成，2已取消*/

    NOT_START(0, "未开始"),

    COMPLETED(1, "已完成"),

    CANCELED(2, "已取消");


    private final int value;

    private final String desc;

    ReservationState(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public boolean isMuch(int value) {
        return this.value == value;
    }
}
